package com.aoip.telemetry.telemetry.core.util;

import com.alibaba.fastjson.JSON;
import com.aoip.telemetry.telemetry.entity.common.LogEntity;
import com.aoip.telemetry.telemetry.entity.enums.LogLevelEnum;
import com.aoip.telemetry.telemetry.entity.enums.LogTypeEnum;
import org.springframework.util.StringUtils;

/**
 * @author chenbai
 * @version 1.0
 * @Description TODO
 * @date 2021/12/1 17:16
 */
public class CreateLogUtil {

    public void createLog( ){
//        LogEntity entity = new LogEntity(LogTypeEnum.LOG_RECEIVE);
//        entity.setOriginalText(originalText);
//        if (StringUtils.hasText(sendResult)) {
//            entity.setLoggerLevel(LogLevelEnum.ERROR);
//            entity.setLogMsg(sendResult);
//        }
//        messageSendMqHandler.sendMsgToMq.sendMsg("telemetry_log", JSON.toJSONString(entity));
    }
}
